package com.ushine.web.component.mybatis.desensitization.annotation;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.ushine.web.component.mybatis.desensitization.SensitiveTypeEnum;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @Author: yls
 * @Date: 2021/01/14 19:43
 * @Description: 自定义脱敏注解
 * @Version 1.0
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotationsInside
//@JsonSerialize(using = DesensitizationFormatter.class)
public @interface Desensitization {
    /**
     * 脱敏类型
     */
    SensitiveTypeEnum type();
}
